﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YGame.Base;
using System.Diagnostics;

namespace YGame.GameLogic.MessageHandler
{
	class ActorLogin : IMessageHandler
	{
		#region IMessageHandler 成员

		public void OnReceive(BaseMessage msg)
		{
			Trace.Write(String.Format("YGame.GameLogic.MessageHandler.ActorLogin OnRecieve: {0}\r\n", msg.Body));

			YGame.Message.Client.AcotrLoing stReq = YGame.Base.BaseMessage.FromJson(msg.Body, typeof(YGame.Message.Client.AcotrLoing)) as YGame.Message.Client.AcotrLoing;

			ServerGlobal.GameLogicProvider.ActorLogin(stReq.ActorID);
		}

		#endregion
	}
}
